<?php

abstract class RegularView extends View
{
	
	public function html()
	{
	?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<?php
		$this->styles();
		$this->head();
		$title = $this->title();
		if (empty($title)):
	?>
		<title>MyWorld</title>
	<?php else: ?>
		<title><?php echo $title;  ?> - MyWorld</title>
	<?php endif; ?>
	</head>
	<body>
	<?php
	$this->body();
	?>
	<br />
	<br />
	<br />
	<div>Page generation time: <?php printf("%f", microtime(true) - Session::get("start_time")); ?></div>
	</body>
</html>
	<?php
	}
	
	abstract protected function title();
	protected function head() {}
	abstract protected function body(); 
	
}

?>